dict = {'a': 12349, 'b': 8890, 'c': 12000, 'aa': 12346, 'bb': 8891, 'cc': 12001, 'aaa': 12347, 'bbb': 8892,
        'ccc': 12002}
list = [{'father': 'A', 'child': ['a', 'aa', 'aaa']}, {'father': 'B', 'child': ['b', 'bb', 'bbb']},
        {'father': 'C', 'child': ['c', 'cc', 'ccc']}]

res_dict = {}

for key, value in dict.items():
    for i in list:
        for j in i['child']:
            value_list = []
            if j.find(key) != -1:
                print(j)
                res_dict[i['father']] = value

print(res_dict)
